package com.yhsoft.mall.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class GoodsBarGoodsListInVo {

    @ApiModelProperty("商品id，不能为空")
    @NotNull(message = "商品id不能为空")
    private Integer id;


    @ApiModelProperty("排序，不能为空,不需要的话补0")
    @NotNull(message = "排序不能为空,不需要的话补0")
    private Integer orderBy;

    @Override
    public String toString() {
        return "{" +
                "\""+"id"+"\":" +"\""+ id +"\"" +
                "," + "\""+"orderBy"+"\":" +"\""+ orderBy +"\"" +
                "}";
    }

}
